﻿using Dapper_Core.Basic;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Dapper_Core.Table
{
    public class Sys_Menu : BaseModel
    {
        /// <summary>
        /// Guid主键，主键必须加[Key]特性，若想对名为Id的列赋值必须加[Required]特性
        /// </summary>
        [Key]
        public string MenuId { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string MenuName { get; set; }
        /// <summary>
        /// 菜单编码
        /// </summary>
        public string MenuCode { get; set; }
        /// <summary>
        /// 菜单类型
        /// </summary>
        public string MenuType { get; set; }
        /// <summary>
        /// 父级编码
        /// </summary>
        public string ParentCode { get; set; }
        /// <summary>
        /// 页面链接
        /// </summary>
        public string PageUrl { get; set; }
        /// <summary>
        /// 菜单图标
        /// </summary>
        public string Icon { get; set; }
        /// <summary>
        /// 排序编号
        /// </summary>
        public string OrderNo { get; set; }
        /// <summary>
        /// 是否有效（0无效、1有效）
        /// </summary>
        public int IsActive { get; set; }
    }
}